package com.onecar.carplatform.common.protocol.basics;

import io.netty.buffer.ByteBuf;
import lombok.Data;
import lombok.ToString;

@Data
public abstract class JtMessage {
    protected JtHeader header;

    public abstract byte[] encodeMsgBody() throws Exception;

    public abstract void decodeMsgBody(ByteBuf buf) throws Exception;
}
